/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight;

import java.nio.charset.Charset;

import com.yanlight.support.PropertiesHolder;


/**
 * 
 *
 * @author haolw
 * @time 2017/03/09
 */
public class Constants {
	public static final Charset DEFAULT_CHARSET = Charset.forName("UTF-8");
	public static final String DEFAULT_CHARSET_NAME = DEFAULT_CHARSET.name();
	public static final String IMGAGE_HOST = PropertiesHolder.get("image.host");
	public static final String APP_FILE_HOST = PropertiesHolder.get("app.file.host");
	public static final String TRADE_PAY_HOST = PropertiesHolder.get("trade.pay.host");
	public static String UPLOAD_APP_PATH = PropertiesHolder.get("upload.app.path");
	public static String UPLOAD_PICTURE_PATH = PropertiesHolder.get("upload.picture.path");
	public static final int DEFAULT_CONNECT_TIMEOUT = 120;
	public static final int DEFAULT_READ_TIMEOUT = 120;
	public static final int DEFAULT_WRITE_TIMEOUT = 180;
	public static final int BUFFER_SIZE = 4096;
	public static final String TOKEN = "token";
	public static final String COLON = ":";
	public static final String POINT = ".";
	public static final String SUCCESS = "success";
	public static final String FAIL = "fail";
	public static final String SLASH = "/";
	public static final String WHIFFLETREE = "-";
	public static final String GET = "GET";
	public static final String POST = "POST";
	public static final String VERIFY_CODE = "verify_code";
	public static final String MAIN_URL = "main";
	public static final String USER_ID = "user_id";
	public static final String COMPANY_ID = "company_id";
	public static final int DEFAULT_PAGE_SIZE = 30;
	public static final String DEFAULT_PASSWORD = "N/A";
	public static final String INITIALIZE_PASSWORD = "123456";
	public static final String QR_IMG_FORMAT = "png";
	public static final String FORM = "application/x-www-form-urlencoded;charset=" + DEFAULT_CHARSET;
	public static String APP_B_NAME = "huidianbao";
	public static String APP_B_S_NAME = "hdb";
	public static String APK = "apk";
	public static String APK_B_DIR = "/100/";
	public static String APK_C_DIR = "/101/";
	public static String APK_B_S_DIR = "/102/";
	public static String LOGO_IMG_DIR = "/103/";
	
	
	public final static String format1 = "yyyy-MM-dd HH:mm:ss";
	public final static String format2 = "yyyyMMddHHmmss";
	public final static String format3 = "yyyyMMddHHmmssSSS";
	public final static String format4 = "yyyy.MM.dd";
	public final static String format5 = "yyyy-MM-dd";
	public final static String format6 = "yyyy-MM-dd 00:00:00";
	public final static String format7 = "yyyy-MM-dd 23:59:59";
}
